package cn.laixueit;

import java.util.Scanner;

public class Demo5 {
    public static void main(String[] args) {
        /*条件控制 if*/
        /*if (false) {
            System.out.println("true");
        }
        System.out.println(123);*/
        /*int i = 3;
        if(i < 2){
            System.out.println("您输入的值小于2");
        }*/

       /* String username = "admin"; // 你的账号
        String password = "1234"; // 你的密码*/
        // && 且
       /* if(username == "admin"){
            if(password == "123"){
                System.out.println("登陆成功");
            }
        }*/
        /*if(username == "admin" && password== "123" ){
            System.out.println("登录成功");
        }*/
        /*if(false){
            System.out.println("true");
        }else{
            System.out.println("false");
        }*/
        /*String username = "admin"; // 你的账号
        String password = "123"; // 你的密码
        if(username == "admin" && password== "123"){
            System.out.println("登录成功");
        }else{
            System.out.println("登录失败");
        }*/
        /*System.out.println("*欢迎来到来学it*");
        System.out.println("*************");
        System.out.println("*1 输入您的卡号*");
        System.out.println("*2 输入您的姓名*");
        System.out.println("*************");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你要操作的指令:");
        int option = scanner.nextInt();
        if(option == 1){
            System.out.println("输入您的四位数卡号：");
            int cardId = scanner.nextInt();
            //判断一下用户录入的是不是四位数
            if(cardId <= 9999 && cardId >= 1000){
                System.out.println("您的卡号为:"+cardId);
            }else{
                System.out.println("您输入的卡号有误,请确保是四位数!");
            }
        }else{
            if(option == 2){
                System.out.println("输入您的姓名：");
                String name =  scanner.next();
                System.out.println("您的姓名为:"+name);
            }else{
                System.out.println("您输入的指令有误，请重新启动程序重试");
            }
        }*/
        /*Scanner scanner = new Scanner(System.in);
        int num =  scanner.nextInt();
        if(num == 1){
            System.out.println("num == 1");
        }else if(num == 2){
            System.out.println("num == 2");
        }else if(num == 3){
            System.out.println("num == 3");
        }else if(num == 4){
            System.out.println("num == 4");
        }*/

        /*
        * if语句总共有三种心事
        * */

       /* System.out.println("*欢迎来到来学it*");
        System.out.println("*************");
        System.out.println("*1 输入您的卡号*");
        System.out.println("*2 输入您的姓名*");
        System.out.println("*3 输入您的密码*");
        System.out.println("*************");
        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入你要操作的指令:");
        int option = scanner.nextInt();
        if(option == 1){
            System.out.println("输入您的四位数卡号：");
            int cardId = scanner.nextInt();
            //判断一下用户录入的是不是四位数
            if(cardId <= 9999 && cardId >= 1000){
                System.out.println("您的卡号为:"+cardId);
            }else{
                System.out.println("您输入的卡号有误,请确保是四位数!");
            }
        }else if(option == 2){
            System.out.println("输入您的姓名：");
            String name =  scanner.next();
            System.out.println("您的姓名为:"+name);
        }else if(option == 3){
            System.out.println("输入您的密码：");
            String pwd =  scanner.next();
            System.out.println("您的密码:"+pwd);
        }else {
            System.out.println("您输入的指令有误，请重新启动程序重试");
        }*/

        int x,y,z;
        x =1;y=2;z=8;
        int max;
        if(x>y && x>z){
            max = x;
        }
        if(y >z && y>x){
            max = y;
        }


    }
}
